package game;


import org.newdawn.slick.Color;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;



/**
 * Feststehende Wand im Spielfeld.
 * 
 * @author mariuswi
 */
public class Border implements Drawable{
    
    //Attribute
    private Rectangle area;
    
    //Methoden
    Border(int posx, int posy, int width, int height){
        this.area = new Rectangle(posx, posy, width, height);
        
    }
    
    public Rectangle getArea() {
        return area;
    }
    
    @Override
    public void draw(GameContainer container, Graphics g) {
        g.setColor(Color.gray);
        g.fillRect(area.getTopx()*GuiPlay.XFACTOR, area.getTopy()*GuiPlay.YFACTOR, area.getWidth()*GuiPlay.XFACTOR, area.getHeight()*GuiPlay.YFACTOR);
    }    
}
